var obj1 = {
  name: "ziheng",
  foo: function () {
    console.log(this);
  },
};
var obj2 = {
  name: "ziheng2",
};

(obj2.foo = obj1.foo)();
// obj2.foo();
